import request from '@/utils/request'

// 查询关键节点计划列表
export function listDealNodePlanning(query) {
  return request({
    url: '/planning/dealNodePlanning/list',
    method: 'get',
    params: query
  })
}

// 查询关键节点计划详细
export function getDealNodePlanning(id) {
  return request({
    url: '/planning/dealNodePlanning/' + id,
    method: 'get'
  })
}

// 保存关键节点计划
export function saveDealNodePlanning(data) {
  return request({
    url: '/planning/dealNodePlanning/save',
    method: 'post',
    data: data
  })
}

// 删除关键节点计划
export function delDealNodePlanning(id) {
  return request({
    url: '/planning/dealNodePlanning/' + id,
    method: 'delete'
  })
}

// 导出关键节点计划
export function exportDealNodePlanning(query) {
  return request({
    url: '/planning/dealNodePlanning/export',
    method: 'get',
    params: query
  })
}
